package di.address.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import di.domain.Address;
import di.domain.Person;

public class TestAddress {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("di/address/config/Address.xml");
	
		Address a1 = (Address)context.getBean("address");
		System.out.println(a1);
		
		Person p1 = (Person)context.getBean("person1");
		System.out.println(p1);
		
		Person p2 = (Person)context.getBean("person2");
		System.out.println(p2);
		
		Person p3 = (Person)context.getBean("person3");
		System.out.println(p3);
		
		Person p5 = (Person)context.getBean("person5");
		System.out.println(p5);
	}
}
